package com.acme.bankapp.domain.client;

public enum Gender {

    MALE("Mr.", "m"),
    FEMALE("Mrs.", "f");

    private final String salutation;
    private final String genderName;

    private Gender(String salutation, String genderName) {
        this.salutation = salutation;
        this.genderName = genderName;
    }

    @Override
    public String toString() {
        return genderName;
    }

    public String getSalutation() {
        return salutation;
    }
}

